package com.ponhu.ea2.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 字典项
 *
 * @author ${author}
 * @since 2021-10-14
 */
@Data
@Accessors(chain = true)
@TableName(value = "ph_sys_dict_item")
public class PhSysDictItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 字典表ID
     */
    private Integer dictId;

    /**
     * 标签名
     */
    private String label;

    /**
     * 标签值
     */
    private String value;

    /**
     * 字典类型
     */
    private String type;

    /**
     * 描述
     */
    private String description;

    /**
     * 排序（升序）
     */
    private Integer sort;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 删除标识1未删2已删
     */
    @TableLogic(value = "1", delval = "2")
    private String delFlag;

}
